From: Ximin Luo Date: Tue, 25 Jul 2017 12:50:59 +0000 (+0200) Subject: Try to get cross-compiling working again X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~183 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=cabaded9637dd5965876222f765a57ca4c8bd2e3;p=cargo.git Try to get cross-compiling working again --- diff --git a/debian/control b/debian/control index b5910a930..94c030e9e 100644 --- a/debian/control +++ b/debian/control @@ -10,6 +10,9 @@ Build-Depends: debhelper (>= 9.20141010), dpkg-dev (>= 1.17.14), python-dulwich , python-pytoml , +# TODO: related to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839145 +# the non-native lines can be deleted after all versions in unstable are M-A: allowed + cargo (>= 0.17.0) | cargo:native (>= 0.17.0) , rustc:native (>= 1.16), libstd-rust-dev (>= 1.16), diff --git a/debian/install b/debian/install index a1ad6e4ff..524567504 100644 --- a/debian/install +++ b/debian/install @@ -1,2 +1,2 @@ -target/release/cargo usr/bin +target/*/release/cargo usr/bin debian/scripts/* usr/share/cargo diff --git a/debian/rules b/debian/rules index ec8da18a5..167c903bb 100755 --- a/debian/rules +++ b/debian/rules @@ -15,7 +15,7 @@ RUSTFLAGS += $(foreach flag,$(LDFLAGS),-C link-arg=$(flag)) export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS RUSTFLAGS CARGO = RUST_BACKTRACE=1 cargo -CARGOFLAGS = --release +CARGOFLAGS = --release --target=$(DEB_HOST_RUST_TYPE) # Cargo looks for config in and writes cache to $CARGO_HOME/ export CARGO_HOME = $(CURDIR)/debian/cargohome # Ask cargo to be verbose when building